<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script src="./lib/echarts.min.js"></script>
    <script>
       const data = [
      { name: '北京', value: 10 },
      { name: '河北省', value: 8 },
      { name: '山西省', value: 5 },
      { name: '内蒙古自治区', value: 7 },
    ] 
    let res = data.find(v => {
      // return '条件'
      // return v.value > 6
      return v.name.includes('山西')
    })
    console.log(res)
    </script>
</body>
</html>